/*
* @Author: steven.wang
* @Date:   2019-01-09 17:35:40
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-13 15:03:49
*/
var express = require('express');
var router = express.Router();
const jwtMiddleware = require('../../middlewares/jwt');
var photoController = require('../../controllers/crawler/photo');

// 获取图片列表
router.get('/list', jwtMiddleware, photoController.list);
// 添加图片
router.post('/add', jwtMiddleware, photoController.addPhotos);
// 更新图片
router.put('/update', jwtMiddleware, photoController.updatePhotos);
// 删除
router.delete('/delete', jwtMiddleware, photoController.deletePhotos);

module.exports = router;